package app2

import "fmt"

/**
该包已经下载并在gopath中
*/
import "github.com/json-iterator/go"


func App2()  {
	fmt.Println("this is from app2, use the other repo")
	var json = jsoniter.ConfigCompatibleWithStandardLibrary
	data :=NewHouse(123.232,323.232)
	// []byte
	buf,_ :=json.Marshal(&data)
	fmt.Println(string(buf))
}

type  House struct{
	Square float32
	Value float32
}
/**
	New构造方法
*/
func NewHouse(s float32,v float32) *House{
	house :=House{}
	house.Square = s
	house.Value = v
	return &house
}